The Rectangle Structure
You use thegxRectangle
structure in a variety of situations: to specify the geometry of a rectangle shape, to specify the bounding rectangle of another shape, and so on.The
gxRectangle
structure is defined as follows:
struct gxRectangle { Fixed left; Fixed top; Fixed right; Fixed bottom; };You may specify a rectangle's geometric points in any order--the coordinates in the
Field Description
left
- Specifies the x-coordinate of the rectangle's first geometric point.
top
- Specifies the y-coordinate of the rectangle's first geometric point.
right
- Specifies the x-coordinate of the rectangle's last geometric point.
bottom
- Specifies the y-coordinate of the rectangle's last geometric point.
left
andtop
field do not have to correspond to the rectangle's upper-left corner. However, rectangles calculated by QuickDraw GX, such as those returned from geometric operations as described in Chapter 4, "Geometric Operations," always have their coordinates specified in the standard order.For more information about rectangles and rectangle shapes, see "Rectangle Shapes" on page 2-20.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help